function betweenDay_abs(beginDate, endDate) {
    var time1 = Date.parse(beginDate);
    var time2 = Date.parse(endDate);
    return (Math.abs(time2 - time1))/1000/60/60/24;
}
